QT       += core gui
QT += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH+= \
Model/User \
Model/Query \
Model/Order \
Controller \
Forms \


SOURCES += \
    Controller/api.cpp \
    Controller/controller.cpp \
    Forms/defaultpage.cpp \
    Forms/emailverify.cpp \
    Forms/frm_login.cpp \
    Forms/frm_querypage.cpp \
    Forms/frm_refundquery.cpp \
    Forms/frm_register.cpp \
    Model/Query/frm_userpage.cpp \
    Model/Query/personalcenter.cpp \
    Model/User/frienduserpage.cpp \
    main.cpp \
    Forms/mainwindow.cpp \
    Forms/orderdialog.cpp \
    Model/Query/querypackage.cpp \
    Model/Query/queryresult.cpp \
    Model/Query/queryresultmodel.cpp \
    Controller/services.cpp \
    Forms/stationandcitydelegate.cpp \
    Controller/uimanager.cpp \
    Model/User/user.cpp \
    Model/User/usermodel.cpp \
    util.cpp

HEADERS += \
    Enums.h \
    Controller/api.h \
    Controller/controller.h \
    Forms/defaultpage.h \
    Forms/emailverify.h \
    Forms/frm_login.h \
    Forms/frm_querypage.h \
    Forms/frm_refundquery.h \
    Forms/frm_register.h \
    Forms/mainwindow.h \
    Forms/orderdialog.h \
    Model/Query/frm_userpage.h \
    Model/Query/personalcenter.h \
    Model/Query/querypackage.h \
    Model/Query/queryresult.h \
    Model/Query/queryresultmodel.h \
    Controller/services.h \
    Forms/stationandcitydelegate.h \
    Controller/uimanager.h \
    Model/User/frienduserpage.h \
    Model/User/user.h \
    Model/User/usermodel.h \
    util.h
FORMS += \
    Forms/defaultpage.ui \
    Forms/emailverify.ui \
    Forms/frm_login.ui \
    Forms/frm_querypage.ui \
    Forms/frm_refundquery.ui \
    Forms/frm_register.ui \
    Forms/mainwindow.ui \
    Forms/orderdialog.ui \
    Model/Query/frm_userpage.ui \
    Model/Query/personalcenter.ui \
    Model/User/frienduserpage.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    Resources.qrc

DISTFILES += \
    Controller/token
